package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class EmploymentQuestExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EmploymentQuestExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andQuestionidIsNull() {
            addCriterion("questionId is null");
            return (Criteria) this;
        }

        public Criteria andQuestionidIsNotNull() {
            addCriterion("questionId is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionidEqualTo(Integer value) {
            addCriterion("questionId =", value, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidNotEqualTo(Integer value) {
            addCriterion("questionId <>", value, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidGreaterThan(Integer value) {
            addCriterion("questionId >", value, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidGreaterThanOrEqualTo(Integer value) {
            addCriterion("questionId >=", value, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidLessThan(Integer value) {
            addCriterion("questionId <", value, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidLessThanOrEqualTo(Integer value) {
            addCriterion("questionId <=", value, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidIn(List<Integer> values) {
            addCriterion("questionId in", values, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidNotIn(List<Integer> values) {
            addCriterion("questionId not in", values, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidBetween(Integer value1, Integer value2) {
            addCriterion("questionId between", value1, value2, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionidNotBetween(Integer value1, Integer value2) {
            addCriterion("questionId not between", value1, value2, "questionid");
            return (Criteria) this;
        }

        public Criteria andQuestionnumIsNull() {
            addCriterion("questionNum is null");
            return (Criteria) this;
        }

        public Criteria andQuestionnumIsNotNull() {
            addCriterion("questionNum is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionnumEqualTo(Integer value) {
            addCriterion("questionNum =", value, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumNotEqualTo(Integer value) {
            addCriterion("questionNum <>", value, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumGreaterThan(Integer value) {
            addCriterion("questionNum >", value, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("questionNum >=", value, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumLessThan(Integer value) {
            addCriterion("questionNum <", value, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumLessThanOrEqualTo(Integer value) {
            addCriterion("questionNum <=", value, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumIn(List<Integer> values) {
            addCriterion("questionNum in", values, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumNotIn(List<Integer> values) {
            addCriterion("questionNum not in", values, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumBetween(Integer value1, Integer value2) {
            addCriterion("questionNum between", value1, value2, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestionnumNotBetween(Integer value1, Integer value2) {
            addCriterion("questionNum not between", value1, value2, "questionnum");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentIsNull() {
            addCriterion("questionContent is null");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentIsNotNull() {
            addCriterion("questionContent is not null");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentEqualTo(String value) {
            addCriterion("questionContent =", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentNotEqualTo(String value) {
            addCriterion("questionContent <>", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentGreaterThan(String value) {
            addCriterion("questionContent >", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentGreaterThanOrEqualTo(String value) {
            addCriterion("questionContent >=", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentLessThan(String value) {
            addCriterion("questionContent <", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentLessThanOrEqualTo(String value) {
            addCriterion("questionContent <=", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentLike(String value) {
            addCriterion("questionContent like", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentNotLike(String value) {
            addCriterion("questionContent not like", value, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentIn(List<String> values) {
            addCriterion("questionContent in", values, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentNotIn(List<String> values) {
            addCriterion("questionContent not in", values, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentBetween(String value1, String value2) {
            addCriterion("questionContent between", value1, value2, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestioncontentNotBetween(String value1, String value2) {
            addCriterion("questionContent not between", value1, value2, "questioncontent");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameIsNull() {
            addCriterion("questionnaireName is null");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameIsNotNull() {
            addCriterion("questionnaireName is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameEqualTo(String value) {
            addCriterion("questionnaireName =", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameNotEqualTo(String value) {
            addCriterion("questionnaireName <>", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameGreaterThan(String value) {
            addCriterion("questionnaireName >", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameGreaterThanOrEqualTo(String value) {
            addCriterion("questionnaireName >=", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameLessThan(String value) {
            addCriterion("questionnaireName <", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameLessThanOrEqualTo(String value) {
            addCriterion("questionnaireName <=", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameLike(String value) {
            addCriterion("questionnaireName like", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameNotLike(String value) {
            addCriterion("questionnaireName not like", value, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameIn(List<String> values) {
            addCriterion("questionnaireName in", values, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameNotIn(List<String> values) {
            addCriterion("questionnaireName not in", values, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameBetween(String value1, String value2) {
            addCriterion("questionnaireName between", value1, value2, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andQuestionnairenameNotBetween(String value1, String value2) {
            addCriterion("questionnaireName not between", value1, value2, "questionnairename");
            return (Criteria) this;
        }

        public Criteria andOptionsIsNull() {
            addCriterion("options is null");
            return (Criteria) this;
        }

        public Criteria andOptionsIsNotNull() {
            addCriterion("options is not null");
            return (Criteria) this;
        }

        public Criteria andOptionsEqualTo(String value) {
            addCriterion("options =", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotEqualTo(String value) {
            addCriterion("options <>", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsGreaterThan(String value) {
            addCriterion("options >", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsGreaterThanOrEqualTo(String value) {
            addCriterion("options >=", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsLessThan(String value) {
            addCriterion("options <", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsLessThanOrEqualTo(String value) {
            addCriterion("options <=", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsLike(String value) {
            addCriterion("options like", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotLike(String value) {
            addCriterion("options not like", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsIn(List<String> values) {
            addCriterion("options in", values, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotIn(List<String> values) {
            addCriterion("options not in", values, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsBetween(String value1, String value2) {
            addCriterion("options between", value1, value2, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotBetween(String value1, String value2) {
            addCriterion("options not between", value1, value2, "options");
            return (Criteria) this;
        }

        public Criteria andProblemtypesIsNull() {
            addCriterion("problemTypes is null");
            return (Criteria) this;
        }

        public Criteria andProblemtypesIsNotNull() {
            addCriterion("problemTypes is not null");
            return (Criteria) this;
        }

        public Criteria andProblemtypesEqualTo(String value) {
            addCriterion("problemTypes =", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesNotEqualTo(String value) {
            addCriterion("problemTypes <>", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesGreaterThan(String value) {
            addCriterion("problemTypes >", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesGreaterThanOrEqualTo(String value) {
            addCriterion("problemTypes >=", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesLessThan(String value) {
            addCriterion("problemTypes <", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesLessThanOrEqualTo(String value) {
            addCriterion("problemTypes <=", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesLike(String value) {
            addCriterion("problemTypes like", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesNotLike(String value) {
            addCriterion("problemTypes not like", value, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesIn(List<String> values) {
            addCriterion("problemTypes in", values, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesNotIn(List<String> values) {
            addCriterion("problemTypes not in", values, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesBetween(String value1, String value2) {
            addCriterion("problemTypes between", value1, value2, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andProblemtypesNotBetween(String value1, String value2) {
            addCriterion("problemTypes not between", value1, value2, "problemtypes");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectIsNull() {
            addCriterion("questionEffect is null");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectIsNotNull() {
            addCriterion("questionEffect is not null");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectEqualTo(String value) {
            addCriterion("questionEffect =", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectNotEqualTo(String value) {
            addCriterion("questionEffect <>", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectGreaterThan(String value) {
            addCriterion("questionEffect >", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectGreaterThanOrEqualTo(String value) {
            addCriterion("questionEffect >=", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectLessThan(String value) {
            addCriterion("questionEffect <", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectLessThanOrEqualTo(String value) {
            addCriterion("questionEffect <=", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectLike(String value) {
            addCriterion("questionEffect like", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectNotLike(String value) {
            addCriterion("questionEffect not like", value, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectIn(List<String> values) {
            addCriterion("questionEffect in", values, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectNotIn(List<String> values) {
            addCriterion("questionEffect not in", values, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectBetween(String value1, String value2) {
            addCriterion("questionEffect between", value1, value2, "questioneffect");
            return (Criteria) this;
        }

        public Criteria andQuestioneffectNotBetween(String value1, String value2) {
            addCriterion("questionEffect not between", value1, value2, "questioneffect");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}